﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cloak.NUnit;
using NUnit.Framework;

namespace Ruleweaver.Conditions.ConditionKeys
{
	public class CreateConditionKeyWithDefaultName : Behavior
	{
		private Type _targetType;
		private ConditionKey _key;

		protected override void Given()
		{
			_targetType = typeof(int);
		}

		protected override void When()
		{
			_key = new ConditionKey(_targetType, ConditionKey.DefaultName);
		}

		[Then]
		public void IsDefault()
		{
			Assert.IsTrue(_key.IsDefault);
		}

		[Then]
		public void IsNotInvariant()
		{
			Assert.IsFalse(_key.IsInvariant);
		}
	}
}